<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<FarmaciaWeb.Models.Pedido>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	UPC
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Clientes</h2>

    <table>
        <tr>
            <th></th>
            <th>
                Codigo
            </th>
            <th>
                Nombre
            </th>
            <th>
                Producto
            </th>
            <th>
                cantidad
            </th>
            <th>
                Preci untari
            </th>
            
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new { codigo = item.Codigo })%> |
                <%: Html.ActionLink("Detalles", "Details", new { codigo = item.Codigo })%> |
                <%: Html.ActionLink("Eliminar", "Delete", new { codigo = item.Codigo })%>
            </td>
            <td>
                <%: item.Codigo %>
            </td>
            <td>
                <%: item.NomCliente %>
            </td>
            <td>
                <%: item.Producto %>
            </td>
            <td>
                <%: item.PrecioUni %>
            </td>
            <td>
                <%: item.Cantidad %>
            </td>
            <td>
                <%:item.SubTotal %>
            </td>

        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear", "Create") %>
    </p>

</asp:Content>

